home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / HyperTalk / Stack Starter ß.976 / Stack Starter fl.976 / card_18593.txt < prev    next >
Encoding:
Text File  |  1988-08-03  |  11.1 KB  |  514 lines

  1. -- card: 18593 from stack: in.976
  2. -- bmap block id: 3716
  3. -- flags: 0000
  4. -- background id: 2295
  5. -- name: the icon initiator
  6. ----- HyperTalk script -----
  7. on idle
  8.   if visible of field "Mouse Loc2" is true then
  9.     put the mouseLoc into field "Mouse Loc2"
  10.   end if
  11.   send action to card btn "Centipede"--"Bug"
  12.   send idle to stack
  13.   exit idle
  14. end idle
  15.  
  16. on closeCard
  17.   hide tool window
  18.   pass closeCard
  19. end closeCard
  20.  
  21. --on arrowKey something
  22. put "bkgnd btn id 31" into ico
  23. if something is "Up" then
  24.   if the commandkey is down then
  25.     put icon of ico into iconid
  26.     add 1 to iconid
  27.     set icon of ico to iconid
  28.     put "set icon of me to" && iconid
  29.   end if
  30. else if something is "Down" then
  31.   if the commandkey is down then
  32.     put icon of ico into iconid
  33.     subtract 1 from iconid
  34.     set icon of ico to iconid
  35.     put "set icon of me to" && iconid
  36.   end if
  37.   --else if something is "Right" then
  38.   --if the commandkey is down then
  39.   --put icon of ico into iconid
  40.   --repeat with iconi = iconid to 1101
  41.   --set icon of me to iconi
  42.   --put "set icon of ico to" && iconi
  43.   --if the mouseClick is true then exit repeat
  44.   --end repeat
  45.   --end if
  46. end if
  47. pass arrowKey
  48. end arrowKey
  49.  
  50.  
  51.  
  52. -- part 1 (button)
  53. -- low flags: 00
  54. -- high flags: A004
  55. -- rect: left=26 top=107 right=157 bottom=66
  56. -- title width / last selected line: 0
  57. -- icon id / first selected line: 1020 / 1020
  58. -- text alignment: 1
  59. -- font id: 0
  60. -- text size: 12
  61. -- style flags: 0
  62. -- line height: 16
  63. -- part name: Show
  64. ----- HyperTalk script -----
  65. on mouseUp
  66.   put "Click the mouse to select icon."
  67.   repeat with iconid = 1000 to 1021
  68.     set icon of me to iconid
  69.     wait 7
  70.     if the mouseClick is true then exit repeat
  71.   end repeat
  72.   if iconid = 1021 then
  73.     set icon of me to 1020
  74.     hide msg
  75.     exit mouseUp
  76.   end if
  77.   put "set icon of me to" && iconid
  78. end mouseUp
  79.  
  80.  
  81.  
  82.  
  83. -- part 2 (button)
  84. -- low flags: 00
  85. -- high flags: A004
  86. -- rect: left=69 top=107 right=157 bottom=108
  87. -- title width / last selected line: 0
  88. -- icon id / first selected line: 6017 / 6017
  89. -- text alignment: 1
  90. -- font id: 0
  91. -- text size: 12
  92. -- style flags: 0
  93. -- line height: 16
  94. -- part name: Create
  95. ----- HyperTalk script -----
  96. on mouseUp
  97.   MakeIcon
  98. end mouseUp
  99.  
  100.  
  101. -- part 3 (button)
  102. -- low flags: 00
  103. -- high flags: A004
  104. -- rect: left=26 top=222 right=272 bottom=65
  105. -- title width / last selected line: 0
  106. -- icon id / first selected line: 4188 / 4188
  107. -- text alignment: 1
  108. -- font id: 0
  109. -- text size: 12
  110. -- style flags: 0
  111. -- line height: 16
  112. -- part name: Info
  113. ----- HyperTalk script -----
  114. on mouseUp
  115.   do short name of me
  116. end mouseUp
  117.  
  118.  
  119.  
  120. -- part 4 (button)
  121. -- low flags: 00
  122. -- high flags: A004
  123. -- rect: left=68 top=222 right=272 bottom=107
  124. -- title width / last selected line: 0
  125. -- icon id / first selected line: 4179 / 4179
  126. -- text alignment: 1
  127. -- font id: 0
  128. -- text size: 12
  129. -- style flags: 0
  130. -- line height: 16
  131. -- part name: Map
  132. ----- HyperTalk script -----
  133. on mouseUp
  134.   doMenu short name of me
  135. end mouseUp
  136.  
  137.  
  138. -- part 5 (button)
  139. -- low flags: 00
  140. -- high flags: 0000
  141. -- rect: left=28 top=304 right=333 bottom=60
  142. -- title width / last selected line: 0
  143. -- icon id / first selected line: 4307 / 4307
  144. -- text alignment: 1
  145. -- font id: 0
  146. -- text size: 12
  147. -- style flags: 0
  148. -- line height: 16
  149. -- part name: Centipede
  150. ----- HyperTalk script -----
  151. on mouseUp
  152.   set icon of me to 4307
  153.   get loc of me
  154.   add 10 to item 1 of it
  155.   put it
  156. end mouseUp
  157.  
  158. on action
  159.   put loc of me into location
  160.   if item 1 of location < 1 then
  161.     put 512 into item 1 of location
  162.     put random(312)+30 into item 2 of location
  163.     repeat with i = 5 to 9
  164.       show card btn id i at location
  165.       subtract 30 from item 1 of location
  166.       --subtract random(2) from item 2 of location
  167.     end repeat
  168.     add 192 to item 1 of location
  169.   end if
  170.   lock
  171.   repeat with i = 5 to 9
  172.     --set icon of card btn id i to 4303 + random(2)
  173.     --if icon of card btn id i is 4304 then
  174.     -- set icon of card btn id i to 4305
  175.     --else set icon of card btn id i to 4304
  176.     subtract 30 from item 1 of location
  177.     --subtract random(2) from item 2 of location
  178.     show card btn id i at location
  179.   end repeat
  180.   -- unlock
  181. end action
  182.  
  183.  
  184. -- part 6 (button)
  185. -- low flags: 00
  186. -- high flags: 0000
  187. -- rect: left=-2 top=304 right=333 bottom=30
  188. -- title width / last selected line: 0
  189. -- icon id / first selected line: 4307 / 4307
  190. -- text alignment: 1
  191. -- font id: 0
  192. -- text size: 12
  193. -- style flags: 0
  194. -- line height: 16
  195. -- part name: 
  196. ----- HyperTalk script -----
  197. on mouseUp
  198.   set icon of me to 4307
  199. end mouseUp
  200.  
  201.  
  202.  
  203. -- part 7 (button)
  204. -- low flags: 00
  205. -- high flags: 0000
  206. -- rect: left=-32 top=304 right=333 bottom=0
  207. -- title width / last selected line: 0
  208. -- icon id / first selected line: 4307 / 4307
  209. -- text alignment: 1
  210. -- font id: 0
  211. -- text size: 12
  212. -- style flags: 0
  213. -- line height: 16
  214. -- part name: 
  215. ----- HyperTalk script -----
  216. on mouseUp
  217.   set icon of me to 4307
  218. end mouseUp
  219.  
  220.  
  221.  
  222. -- part 8 (button)
  223. -- low flags: 00
  224. -- high flags: 0000
  225. -- rect: left=-62 top=304 right=333 bottom=-30
  226. -- title width / last selected line: 0
  227. -- icon id / first selected line: 4307 / 4307
  228. -- text alignment: 1
  229. -- font id: 0
  230. -- text size: 12
  231. -- style flags: 0
  232. -- line height: 16
  233. -- part name: 
  234. ----- HyperTalk script -----
  235. on mouseUp
  236.   set icon of me to 4307
  237. end mouseUp
  238.  
  239.  
  240.  
  241. -- part 9 (button)
  242. -- low flags: 00
  243. -- high flags: 0000
  244. -- rect: left=-92 top=304 right=333 bottom=-60
  245. -- title width / last selected line: 0
  246. -- icon id / first selected line: 4307 / 4307
  247. -- text alignment: 1
  248. -- font id: 0
  249. -- text size: 12
  250. -- style flags: 0
  251. -- line height: 16
  252. -- part name: 
  253. ----- HyperTalk script -----
  254. on mouseUp
  255.   set icon of me to 4307
  256. end mouseUp
  257.  
  258.  
  259.  
  260. -- part 10 (button)
  261. -- low flags: 00
  262. -- high flags: A004
  263. -- rect: left=451 top=248 right=298 bottom=490
  264. -- title width / last selected line: 0
  265. -- icon id / first selected line: 4113 / 4113
  266. -- text alignment: 1
  267. -- font id: 0
  268. -- text size: 12
  269. -- style flags: 0
  270. -- line height: 16
  271. -- part name: Bug Out
  272. ----- HyperTalk script -----
  273. on mouseUp
  274.   set icon of me to 4114
  275.   set icon of me to 4113
  276.   set icon of me to 4114
  277.   send mouseDown to card button "Bug"
  278.   set icon of me to 4113
  279. end mouseUp
  280.  
  281.  
  282.  
  283. -- part 11 (button)
  284. -- low flags: 00
  285. -- high flags: 0000
  286. -- rect: left=393 top=268 right=292 bottom=441
  287. -- title width / last selected line: 0
  288. -- icon id / first selected line: 4112 / 4112
  289. -- text alignment: 1
  290. -- font id: 0
  291. -- text size: 12
  292. -- style flags: 0
  293. -- line height: 16
  294. -- part name: Bug
  295. ----- HyperTalk script -----
  296. on mouseEnter
  297.   put the loc of me into location
  298.   add random(60) to item 1 of location
  299.   subtract random(40) from item 2 of location
  300.   set lockscreen to true
  301.   set loc of me to location
  302.   set lockscreen to false
  303. end mouseEnter
  304.  
  305. on mouseDown
  306.   set icon of me to 4111
  307.   put the loc of me into location
  308.   set icon of me to 4112
  309.   repeat until item 2 of location > 342
  310.     add 60 to item 2 of location
  311.     set lockscreen to true
  312.     set loc of me to location
  313.     set lockscreen to false
  314.     put the loc of me into location
  315.   end repeat
  316.   put 1 into item 1 of location
  317.   put random(342) into item 2 of location
  318.   set loc of me to location
  319. end mouseDown
  320.  
  321. on idle
  322.   repeat with i = 4108 to 4110
  323.     set icon of me to i
  324.   end repeat
  325.   put the loc of me into location
  326.   if item 1 of location > 512 then
  327.     put 0 into item 1 of location
  328.     put random(342) into item 2 of location
  329.   end if
  330.   add 11 to item 1 of location
  331.   add random(1) to item 2 of location
  332.   set lockscreen to true
  333.   set loc of me to location
  334.   set icon of me to 4107
  335.   set lockscreen to false
  336.   exit idle
  337. end idle
  338.  
  339.  
  340.  
  341. -- part 12 (button)
  342. -- low flags: 00
  343. -- high flags: 2004
  344. -- rect: left=27 top=160 right=210 bottom=66
  345. -- title width / last selected line: 0
  346. -- icon id / first selected line: 0 / 0
  347. -- text alignment: 1
  348. -- font id: 0
  349. -- text size: 12
  350. -- style flags: 0
  351. -- line height: 16
  352. -- part name: 
  353. ----- HyperTalk script -----
  354. on mouseUp
  355.   answer "Sorry, That feature is not supported at this time."
  356. end mouseUp
  357.  
  358.  
  359.  
  360. -- part 13 (button)
  361. -- low flags: 00
  362. -- high flags: 2004
  363. -- rect: left=69 top=160 right=210 bottom=108
  364. -- title width / last selected line: 0
  365. -- icon id / first selected line: 0 / 0
  366. -- text alignment: 1
  367. -- font id: 0
  368. -- text size: 12
  369. -- style flags: 0
  370. -- line height: 16
  371. -- part name: 
  372. ----- HyperTalk script -----
  373. on mouseUp
  374.   answer "Sorry, That feature is not supported at this time."
  375. end mouseUp
  376.  
  377.  
  378.  
  379. -- part 15 (button)
  380. -- low flags: 00
  381. -- high flags: C004
  382. -- rect: left=309 top=311 right=327 bottom=352
  383. -- title width / last selected line: 0
  384. -- icon id / first selected line: 0 / 0
  385. -- text alignment: 1
  386. -- font id: 0
  387. -- text size: 12
  388. -- style flags: 0
  389. -- line height: 16
  390. -- part name: Icons
  391. ----- HyperTalk script -----
  392. on mouseUp
  393.   set hilite of me to true
  394.   beep
  395.   answer "You're already in" && quote & short name of me & quote & "!"
  396. end mouseUp
  397.  
  398.  
  399.  
  400. -- part 16 (button)
  401. -- low flags: 00
  402. -- high flags: 0000
  403. -- rect: left=239 top=74 right=110 bottom=277
  404. -- title width / last selected line: 0
  405. -- icon id / first selected line: 6174 / 6174
  406. -- text alignment: 1
  407. -- font id: 0
  408. -- text size: 12
  409. -- style flags: 0
  410. -- line height: 16
  411. -- part name: 
  412. ----- HyperTalk script -----
  413. on mouseUp
  414.   repeat until the mouse is down
  415.     repeat with i = 6171 to 6174
  416.       put the loc of me into temp
  417.       if item 1 of temp > 512 then put 0 into item 1 of temp
  418.       if item 2 of temp < 0 then put 342 into item 2 of temp
  419.       set icon of me to i
  420.       subtract 8 from item 2 of temp
  421.       add 8 to item 1 of temp
  422.       show the target at temp
  423.     end repeat
  424.   end repeat
  425. end mouseUp
  426.  
  427.  
  428.  
  429. -- part 18 (button)
  430. -- low flags: 00
  431. -- high flags: 0000
  432. -- rect: left=184 top=89 right=128 bottom=227
  433. -- title width / last selected line: 0
  434. -- icon id / first selected line: 6180 / 6180
  435. -- text alignment: 1
  436. -- font id: 0
  437. -- text size: 12
  438. -- style flags: 0
  439. -- line height: 16
  440. -- part name: 
  441. ----- HyperTalk script -----
  442. on mouseUp
  443.   repeat until the mouse is down
  444.     repeat with i = 6177 to 6180
  445.       put the loc of me into temp
  446.       if item 1 of temp < 0 then put 512 into item 1 of temp
  447.       if item 2 of temp < 0 then put 342 into item 2 of temp
  448.       set icon of me to i
  449.       subtract 8 from item 1 of temp
  450.       subtract 8 from item 2 of temp
  451.       show the target at temp
  452.     end repeat
  453.   end repeat
  454. end mouseUp
  455.  
  456.  
  457.  
  458. -- part 20 (button)
  459. -- low flags: 00
  460. -- high flags: 0000
  461. -- rect: left=264 top=121 right=163 bottom=293
  462. -- title width / last selected line: 0
  463. -- icon id / first selected line: 6176 / 6176
  464. -- text alignment: 1
  465. -- font id: 0
  466. -- text size: 12
  467. -- style flags: 0
  468. -- line height: 16
  469. -- part name: 
  470. ----- HyperTalk script -----
  471. on mouseUp
  472.   repeat until the mouse is down
  473.     repeat with i = 6175 to 6176
  474.       put the loc of me into temp
  475.       if item 2 of temp > 342 then
  476.         put (10 + random(490)) into item 1 of temp
  477.         put 0 into item 2 of temp
  478.       end if
  479.       set icon of me to i
  480.       add 8 to item 2 of temp
  481.       show the target at temp
  482.     end repeat
  483.   end repeat
  484. end mouseUp
  485.  
  486.  
  487.  
  488. -- part contents for background part 56
  489. ----- text -----
  490. the icon initiator
  491.  
  492. -- part contents for background part 78
  493. ----- text -----
  494. Prev Card: the field fabricater
  495.  
  496. -- part contents for background part 79
  497. ----- text -----
  498. Next Card: animated icons 1
  499.  
  500. -- part contents for background part 67
  501. ----- text -----
  502. Mouse Location:
  503.  
  504. -- part contents for background part 68
  505. ----- text -----
  506. 210,117
  507.  
  508. -- part contents for background part 82
  509. ----- text -----
  510. Free Space:
  511.  
  512. -- part contents for background part 83
  513. ----- text -----
  514. 0.00 K